package cn.smbms.dao.bill;

import cn.smbms.dao.provider.ProviderMapper;
import cn.smbms.pojo.Bill;
import cn.smbms.pojo.Provide;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

public class BillMapperImpl implements BillMapper {

    private SqlSessionTemplate sqlSession;

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }


    @Override
    public List<Bill> getProvideListByIdMap(Bill bill) {
        return sqlSession.getMapper(BillMapper.class).getProvideListByIdMap(bill);
    }

    @Override
    public int add(Bill bill) {
        return sqlSession.getMapper(BillMapper.class).add(bill);
    }

    @Override
    public int update(Bill bill) {
        return sqlSession.getMapper(BillMapper.class).update(bill);
    }

    @Override
    public int del(Bill bill) {
        return sqlSession.getMapper(BillMapper.class).del(bill);
    }
}
